<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <title>编辑管理员</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="${ctx }/layui/css/layui.css" media="all" />
    <script>
        var ctx = "${ctx}";
    </script>
    <style type="text/css">
        .layui-form-item .layui-inline {
            width: 33.333%;
            float: left;
            margin-right: 0;
        }

        @media ( max-width :1240px) {
            .layui-form-item .layui-inline {
                width: 100%;
                float: none;
            }
        }
        .layui-form-item .layui-form-label {
            width: 100px;
        }
        .layui-form-item .layui-input-block {
            margin-left: 130px;
        }
    </style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width: 90%;margin-top: 20px;">
    <input type="hidden" name="id" value="${jieqian.id }"/>
    <div class="layui-form-item">
        <label class="layui-form-label">口子名称</label>
        <div class="layui-input-block">
            <input type="text" id="name" class="layui-input"
                   lay-verify="required" placeholder="请输入口子名称" name="name" value="${jieqian.name }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">特点</label>
        <div class="layui-input-block">
            <input type="text" name="advantage" class="layui-input"
                   lay-verify="required" placeholder="请输入口子特点" value="${jieqian.advantage }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">图标</label>
        <div class="layui-input-block">
            <input type="text" name="image" class="layui-input"
                   placeholder="请输入图标路径" value="${jieqian.image }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">申请人次</label>
        <div class="layui-input-block">
            <input type="text" name="view" class="layui-input"
                   placeholder="请输入申请人次" value="${jieqian.view }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">文章状态</label>
        <div class="layui-input-block">
            <input type="radio" name="hot" value="0" title="不热门" <c:if test="${jieqian.hot == 0 }">checked</c:if>/>
            <input type="radio" name="hot" value="1" title="热门" <c:if test="${jieqian.hot == 1 }">checked</c:if>>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">类别</label>
        <div class="layui-input-block">
            <c:forEach  items ="${jqcats}" var = "li">
                <input type="checkbox" lay-filter="jqcatids" name="jqcatids" lay-skin="primary"
                <c:forEach  items ="${jq}" var = "r">
                      <c:if test="${li.id == r.jqCatId}">
                        checked
                     </c:if>
                </c:forEach>
                       value="${li.id}" title="${li.name}" >
            </c:forEach>
        </div>
        <input type="hidden" id="jqarr" name="jqarr" value="">
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">通过率（%）</label>
        <div class="layui-input-block">
            <input type="text" name="pass" class="layui-input"
                   placeholder="请输入通过率" value="${jieqian.pass }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">最低借款</label>
        <div class="layui-input-block">
            <input type="number" name="min" class="layui-input"
                   placeholder="请输入最低借款" value="${jieqian.min }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">最高借款</label>
        <div class="layui-input-block">
            <input type="number" name="max" class="layui-input"
                   placeholder="请输入最高借款" value="${jieqian.max }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">借款期限单位</label>
        <div class="layui-input-block">
            <input type="radio" name="time_unit" value="年" title="年" <c:if test="${jieqian.timeUnit == '年' }">checked</c:if>/>
            <input type="radio" name="time_unit" value="月" title="月" <c:if test="${jieqian.timeUnit == '月' }">checked</c:if>>
            <input type="radio" name="time_unit" value="日" title="日" <c:if test="${jieqian.timeUnit == '日' }">checked</c:if>>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">最低借款期限</label>
        <div class="layui-input-block">
            <input type="number" name="minTime" class="layui-input"
                   placeholder="请输入最低借款期限" value="${jieqian.minTime }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">最高借款期限</label>
        <div class="layui-input-block">
            <input type="number" name="maxTime" class="layui-input"
                   placeholder="请输入最低借款期限" value="${jieqian.maxTime }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">利率</label>
        <div class="layui-input-block">
            <input type="number" name="rate" class="layui-input"
                   placeholder="请输入利率" value="${jieqian.rate }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">放款时间</label>
        <div class="layui-input-block">
            <input type="text" name="fangkuanTime" class="layui-input"
                   placeholder="请输入放款时间" value="${jieqian.fangkuanTime }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">放款流程</label>
        <div class="layui-input-block">
            <input type="text" name="liucheng" class="layui-input"
                   placeholder="请输入放款流程" value="${jieqian.liucheng }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">放款条件</label>
        <div class="layui-input-block">
            <input type="text" name="tiaojian" class="layui-input"
                   placeholder="请输入放款条件" value="${jieqian.tiaojian }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">放款材料</label>
        <div class="layui-input-block">
            <input type="text" name="cailiao" class="layui-input"
                   placeholder="请输入放款材料" value="${jieqian.cailiao }">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">跳转链接</label>
        <div class="layui-input-block">
            <input type="text" name="link" class="layui-input"
                   placeholder="请输入跳转链接" value="${jieqian.link }">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="editKouzi">立即提交</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx }/layui/layui.js"></script>
<script type="text/javascript" src="${ctx }/page/kouzijihe/editKouzi.js"></script>

</body>
</html>